import App from './App'
import uView from '@/uni_modules/uview-ui'
import Navbar from '@/components/Navbar'
import wxShare from '@/utils/wxShare'
import movable from './common/movable/movable.vue'
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import {
	router,
	RouterMount
} from '@/utils/router.js' //路径换成自己的
Vue.use(router)
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App
})
Vue.use(uView)
Vue.mixin(wxShare)
Vue.component("Navbar", Navbar)
Vue.component('movable',movable)
// 虚拟旅游appid wx92f811f3ada0030f   密钥 9120b44af2ea055146897908f793271c
Vue.prototype.$appID = uni.getAccountInfoSync().miniProgram.appId
// Vue.prototype.$imageUrl = 'https://xnlv.lzxx8848.com/image/xnlv/static' // 开发环境
Vue.prototype.$imageUrl = 'https://xnlv.lizxx.com/image/xnlv/static' // 生产环境
// #ifdef H5
RouterMount(app, router, '#app')
// #endif

// #ifndef H5
app.$mount(); //为了兼容小程序及app端必须这样写才有效果
// #endif
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif